<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resources/css/admin/main.css"/>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resources/css/validate/main.css"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/core/jquery.cms.core.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/admin/main.js"></script>
<script type="text/javascript" charset="utf-8" src="<%=request.getContextPath() %>/resources/js/kindeditor/kindeditor.js"></script>										
      
</head>
<body>
<div id="content">
	<h3 class="admin_link_bar">
		<jsp:include page="incdetails.jsp"></jsp:include>
	</h3>
	<form method="post" action="<%=request.getContextPath() %>/admin/channeldetails_manage/add" id="myform" >
	<table width="800" cellspacing="0" cellPadding="0">
		<thead><tr><td colspan="2">添加明细</td></tr></thead>
		<tr>
			<td class="rightTd" width="200px">标题:</td>
			<td class="leftTd">${cd.channelDetailsTitle}</td>
		</tr>
		<tr>
			<td class="rightTd">服务类型:</td>
			<td class="leftTd">
				${cd.channel.parent.name}
				
				
			</td>
		</tr>
		<tr>
			<td class="rightTd">子服务类型:</td>
			<td class="leftTd">
				
				${cd.channel.name}
			</td>
		</tr>
		<tr>
			<td class="rightTd">信息来源:</td>
			<td class="leftTd">
		${cd.channelDetailsFrom}
		
		</tr>
		<tr>
			<td class="rightTd">搜索关键字:</td>
			<td class="leftTd">${cd.channelDetailsIndex}</td>
		</tr>
		<tr>
			<td class="rightTd">标题图片:</td>
			<td class="leftTd">
			
			<c:choose>
				<c:when test="${cd.channelDetailsPic==''}">
					暂无
				</c:when>
				<c:otherwise>
				<span id="imgspan"><img height="50px" width="100" src="<%=request.getContextPath() %>/resources/fileupload/${cd.channelDetailsPic}"></span>
			
				</c:otherwise>
			</c:choose>
		<input type="hidden" id="cs" name="channelDetailsPic" id="imgfileName" value="${cd.channelDetailsPic}"/>
			</td>
		</tr>
		<tr>
			<td class="rightTd">是否首页显示:</td>
			<td class="leftTd">
				<input type="radio" name="channelDetailsIshome"  ${cd.channelDetailsIshome eq 0?"checked='checked' ":"" }   value="0"/>否
				<input type="radio" name="channelDetailsIshome" ${cd.channelDetailsIshome eq 1?"checked='checked' ":"" } value="1"/>是
			</td>
		</tr>
		<tr>
			<td class="rightTd">内容:</td>
			<td class="leftTd">
			
				${cd.channelDetailsContent }
			
			</td>
		</tr>
		<tr>
		
			<td colspan="2" class="centerTd"><a href="<%=request.getContextPath() %>/admin/channeldetails_manage/initPage" >返回</td>
		</tr>
	</table>
	</form>
</div>

</body>
</html>